import fn from "@/utils/tool/tool.function";
import { closeContextMenu } from "@/utils/global.function";
const toolFun: any = {
    /**
     * 图上文字
     */
    graphicText: {
        newStyle: [
            {
                label: "文字",
                value: "label",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.graphicText.label("label");
                },
            },
        ],
        commonStyle: [
            {
                label: "立面文字",
                value: "walllabel",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.graphicText.label("walllabel");
                },
            },
            {
                label: "贴地旋转",
                value: "rotatelabel",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.graphicText.label("rotatelabel");
                },
            },
            {
                label: "跑马文字",
                value: "rectangle",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.graphicText.label("rectangle");
                },
            },
        ],
    },
    /**
     * 图上标点
     */
    punctuation: {
        newStyle: [],
        commonStyle: [
            {
                label: "图标点",
                value: "point",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.punctuation.point();
                },
            },
            {
                label: "动态点",
                value: "",
                disabled: true,
            },
            {
                label: "图片点",
                value: "",
                disabled: true,
            },
            {
                label: "全景点",
                value: "",
                disabled: true,
            },
            {
                label: "DIV点",
                value: "",
                disabled: true,
            },
        ],
    },
    /**
     * 图上线段
     */
    segment: {
        newStyle: [],
        commonStyle: [
            {
                label: "线段",
                value: "polyline",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.polyline();
                },
            },
            {
                label: "曲线",
                value: "curve",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.curve();
                },
            },
            {
                label: "管道",
                value: "polylineVolume",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.polylineVolume();
                },
            },
            {
                label: "走廊",
                value: "corridor",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.corridor();
                },
            },
            {
                label: "围栏",
                value: "wall",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.wall();
                },
            },
            {
                label: "道路",
                value: "road",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.segment.road();
                },
            },
            {
                label: "DIV点",
                value: "",
                disabled: true,
            },
        ],
    },
    /**
     * 二维平面
     */
    twodimension: {
        newStyle: [],
        commonStyle: [
            {
                label: "平面",
                value: "plane",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.plane();
                },
            },
            {
                label: "矩形",
                value: "rectangle",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.rectangle();
                },
            },
            {
                label: "多边形",
                value: "polygon",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.polygon();
                },
            },
            {
                label: "正多边形",
                value: "regular",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.regular();
                },
            },
            {
                label: "圆形",
                value: "circle",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.circle();
                },
            },
            {
                label: "扇形",
                value: "sector",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.sector();
                },
            },
            {
                label: "椭圆",
                value: "ellipse",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.twodimension.ellipse();
                },
            },
            {
                label: "军标",
                value: "",
                disabled: true,
            },
        ],
    },
    /**
     * 三维立体
     */
    threedimensional: {
        newStyle: [],
        commonStyle: [
            {
                label: "立体",
                value: "box",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.box();
                },
            },
            {
                label: "圆柱",
                value: "circle",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.circle();
                },
            },
            {
                label: "椭圆柱",
                value: "ellipse",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.ellipse();
                },
            },
            {
                label: "圆锥",
                value: "cylinder",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.cylinder();
                },
            },
            {
                label: "球及椭球",
                value: "ellipsoid",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.ellipsoid();
                },
            },
            {
                label: "雷达及半球",
                value: "ellipsoid",
                disabled: false,
                click: () => {
                    // 关闭右键菜单
                    closeContextMenu();
                    fn.threedimensional.radar();
                },
            },
        ],
    },
    /**
     * 加载模型
     */
    loadmodel: {
        newStyle: [],
        commonStyle: [
            {
                label: "BIM模型",
                value: "",
                disabled: true,
            },
            {
                label: "人工建模",
                value: "",
                disabled: true,
            },
        ],
    },
};
export default toolFun;
